<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', true);

include_once "config.php";
include_once "connect.php";
include_once "sujet.php";
	if (isset($_GET["id_post"])) {
		$delete= "delete from AP3_SP_post where id_post=".$_GET['id_post']."";
		mysql_query ($delete);	
		header("Location: affiche_post.php?id_post=".$_GET["id_pere"]."&id_categorie=".$_GET["id_categorie"]."");
	}
	else echo "erreur";
?>